package com.wang.springbootinit.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class ChatHistoryVO implements Serializable {

    private Long id;

    /**
     * 会话id
     */
    private String conversationId;


    /**
     * 聊天记录
     */
    private String chatInfo;

    /**
     * 聊天主体
     */
    private String chatUserType;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 用户id
     */
    private String userName;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}
